/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.om.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 事件表
 *
 * @author weiyj
 * @date 2023-02-24 13:52:55
 */
@Data
@TableName("om_w_event")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "事件表")
public class OmWEvent  extends Model<OmWEvent> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "主键")
	private Integer evId;

	/**
	 * 事件编号
	 */
	@Schema(description = "事件编号")
	private String eventNo;

	/**
	 * 审批人
	 */
	@Schema(description = "审批人")
	private Long approveUserId;

	/**
	 * 审批时间
	 */
	@Schema(description = "审批时间")
	private LocalDateTime approveTime;

	/**
	 * 审批人姓名
	 */
	@Schema(description = "审批人姓名")
	private String approveUserName;

	/**
	 * 审批人电话
	 */
	@Schema(description = "审批人电话")
	private String approveUserPhone;

	/**
	 * 事件名称
	 */
	@Schema(description = "事件名称")
	private String eventName;

	/**
	 * 事件报告人
	 */
	@Schema(description = "事件报告人")
	private Long eventUserId;

	/**
	 * 事件报告人
	 */
	@Schema(description = "事件报告人部门ID")
	private Long eventUserDeptId;

	/**
	 * 事件报告人姓名
	 */
	@Schema(description = "事件报告人姓名")
	private String eventUserName;

	/**
	 * 事件报告人电话
	 */
	@Schema(description = "事件报告人电话")
	private String eventUserPhone;

	/**
	 * 事件报告来源
	 */
	@Schema(description = "事件报告来源")
	private String eventFromType;

	/**
	 * 处理人id
	 */
	@Schema(description = "处理人")
	private Long handleUserId;

	/**
	 * 处理人部门id
	 */
	@Schema(description = "处理人部门id")
	private Long handleUserDeptId;

	/**
	 * 处理人姓名
	 */
	@Schema(description = "处理人姓名")
	private String handleUserName;

	/**
	 * 处理人电话
	 */
	@Schema(description = "处理人电话")
	private String handleUserPhone;

	/**
	 * 处理时间
	 */
	@Schema(description = "处理时间")
	private LocalDateTime handleTime;

	/**
	 * 事件类型
	 */
	@Schema(description = "事件类型")
	private String eventType;

	/**
	 * 事件程度;0：特急，1：紧急，2：一般
	 */
	@Schema(description = "事件程度;0：特急，1：紧急，2：一般")
	private String eventLevel;

	/**
	 * 事件区域
	 */
	@Schema(description = "事件区域")
	private String eventArea;

	/**
	 * 设备编号
	 */
	@Schema(description = "设备编号")
	private String equipNo;

	/**
	 * 设备名称
	 */
	@Schema(description = "设备名称")
	private String equipName;

	/**
	 * 事件内容
	 */
	@Schema(description = "事件内容")
	private String eventDesc;

	/**
	 * 处理流转原因
	 */
	@Schema(description = "处理流转原因")
	private String eventFlowReason;

	/**
	 * 事件状态;0：未处理，1：事件挂起，2：事件关闭，3：已生成工单，4：已评价
	 */
	@Schema(description = "事件状态;0：未处理，1：事件挂起，2：事件关闭，3：已生成工单，4：已评价")
	private String eventStatus;

	/**
	 * 事件处理；0事件挂起1 生成工单 2事件关闭
	 */
	@Schema(description = "事件处理；0事件挂起1 生成工单 2事件关闭")
	private String handleType;

	/**
	 * 评价内容
	 */
	@Schema(description = "评价内容")
	private String reviewDesc;

	/**
	 * 评价等级
	 */
	@Schema(description = "评价等级")
	private String reviewLevel;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 区分维保事件
	 */
	@Schema(description = "区分维保事件")
	private String repairType;

	/**
	 * 区分维保事件
	 */
	@Schema(description = "区分维保事件")
	private String associateTickets;

	/**
	 * 原因
	 */
	@Schema(description = "原因")
	private String cause;

	/**
	 * 事件来源
	 */
	@Schema(description = "事件来源")
	private String sourceOfEvent;

	/**
	 * 协同id
	 */
	@Schema(description = "协同id")
	private String uuid;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;


}
